package io.renren.sf.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.sf.dao.FixedInformationDicDao;
import io.renren.sf.entity.FixedInformationDicEntity;
import io.renren.sf.service.FixedInformationDicService;
import org.springframework.stereotype.Service;

import java.util.Date;


@Service("fixedInformationDicService")
public class FixedInformationDicServiceImpl extends ServiceImpl<FixedInformationDicDao, FixedInformationDicEntity> implements FixedInformationDicService {

    /**
     * 如果记录存在则更新content字段，反之则新增一条记录
     * @param name
     * @param content
     */
    @Override
    public void setOne(String name, String content, Date date) {
        this.baseMapper.insertBzbfZip(name, content, date);
    }
}